package com.za.wbw.dao.shop.impl;

import java.util.List;
import java.util.Map;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.za.wbw.dao.shop.OrderDao;
import com.za.wbw.model.shop.OrderInfo;

@SuppressWarnings("unchecked")
public class OrderDaoImpl extends SqlMapClientDaoSupport implements OrderDao {
	// 查询订单分页
	public List<OrderInfo> queryOrderPage(Map<String,Object> pars) throws Exception{
		return (List<OrderInfo>)getSqlMapClientTemplate().queryForList("shop.queryOrderPage",pars);
	}
	// 查谒订单数量
	public int queryOrderCount(Map<String,Object> pars) throws Exception{
		return (Integer)getSqlMapClientTemplate().queryForObject("shop.queryOrderCount",pars);
	}
}
